package com.xuyiwei.xblog.business.system.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.xuyiwei.xblog.business.system.model.Notice;
import com.xuyiwei.xblog.business.system.result.notice.out.NoticeDto;
import com.xuyiwei.xblog.business.system.result.user.input.UserConditionVO;
import com.xuyiwei.xblog.business.system.result.user.out.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知表 服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-22
 */
public interface INoticeService extends IService<Notice> {

    /**
     * 获取通知列表
     */
    List<Notice> list(String condition);

    /**
     * 批量删除通知
     * @param ids
     */
    void deleteNoticesByIds(List<Long> ids);

    /**
     * 清空所有通知
     */
    void deleteAllNotice();

    /**
     * 获取通知列表
     */
    List<NoticeDto> findPageByCondition(Page<NoticeDto> page, @Param("vo") String condition, String orderByField, boolean isAsc);
}
